package com.psjj.privilege.web.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/main.do")
public class MainController extends BasicServlet {
    private static final String baseurl = "/WEB-INF/page/";
    private void mainUI(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.getRequestDispatcher(baseurl+"main.jsp").forward(req,resp);
        
       
    }
    private void welcomeUI(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.getRequestDispatcher(baseurl+"welcome.jsp").forward(req,resp);
       
    }
}
